package com.blue.http.controller;

import com.blue.core.dict.HttpMethod;
import com.blue.http.annotation.Http;
import com.blue.http.message.HttpRequest;
import com.blue.http.message.View;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 *  跳转测试类
 *
 * @author zhengjin
 * @since 1.0 2017年11月20日
 */
@Component
@Http(url = "/location", method = HttpMethod.GET)
public class LocationController
{
	private static Logger logger = LoggerFactory.getLogger(LocationController.class);

	public LocationController()
	{
	}

	public View index(HttpRequest request)
	{
		String url = "http://www.baidu.com";
		logger.info("跳转：{}", url);
		return new View(url);
	}

}
